//
//  YKClientOrderV2ItemCell.m
//  YunKang
//
//  Created by leoking870 on 2018/6/3.
//  Copyright © 2018年 leoking870. All rights reserved.
//

#import "YKClientOrderV2ItemCell.h"

@interface YKClientOrderV2ItemCell ()
@property (weak, nonatomic) IBOutlet UILabel *hospitalNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *orderNumberLabel;
@property (weak, nonatomic) IBOutlet UILabel *accountTypeLabel;
@property (weak, nonatomic) IBOutlet UILabel *usernameLabel;
@property (weak, nonatomic) IBOutlet UILabel *dateLabel;
@property (weak, nonatomic) IBOutlet UILabel *orderStatusLabel;
@property (weak, nonatomic) IBOutlet UILabel *orderMoneyLabel;

@end


@implementation YKClientOrderV2ItemCell
@dynamic tableViewItem;
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
}

- (void)cellLoadSubViews {
    [super cellLoadSubViews];
}

- (void)cellWillAppear {
    [super cellWillAppear];
    self.hospitalNameLabel.text = self.tableViewItem.model.C_NAME;
    self.dateLabel.text = [[self.tableViewItem.model.DCREATESYSTIME componentsSeparatedByString:@" "]firstObject];
    self.orderStatusLabel.text = [self.tableViewItem.model iStatusString];
    self.orderNumberLabel.text = self.tableViewItem.model.CSOCODE;
    self.accountTypeLabel.text = self.tableViewItem.model.ST_NAME;
    self.usernameLabel.text = self.tableViewItem.model.USER_NAME;
    self.orderMoneyLabel.text = [NSString stringWithFormat:@"¥%@", self.tableViewItem.model.ZDSUM];
    
    [self.contentView.subviews enumerateObjectsUsingBlock:^(__kindof UIView * _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
        if ([obj isKindOfClass:[UILabel class]]) {
            UILabel *label = (UILabel *)obj;
            label.textColor = [UIColor blackColor];
        }
    }];
}


@end
